#----------------------------------------------------------------------------------------------------------------
# Basic File extensions
export BINEXT=""                     # Executable Extension
export LIBEXT=".a"                   # Static Library Extension
export DLLEXT=".so"                  # Dynamic Library Extension
export OBJEXT=".o"                   # Object Extension
export LIBPREFIX="lib"               # Standard Library Prefix
export LIBDIR="lib"                  # Name of the library directory

# Compiler and Linker
[ -z "$CC" ]  && export CC="cc"       # C Compiler
[ -z "$CXX" ] && export CXX="c++"     # C++ Compiler
export LINK=$CXX                      # Executable Linker
export DLLLINK="$CXX -shared"         # Dynamic Library Linker
export LIBLINK="ar cru"               # Static Library Linker
export DLLRPATH="-Wl,-rpath "         # Search Path for Dynamic Libs

# Compiler and Linker Flags
export OUTPUTOBJ="-o"                 # Compiler flag to specify output object filename
export OUTPUTBIN="-o "                   # Compiler flag to specify output executable filename
export PICFLAG=""                     # Compiler flag to generate position independent code

if [ $DEFS == "-DDEBUG" ] ; then
  export CFLAGS="${CFLAGS:--Wall -g -pipe }"
	export CXXFLAGS="${CXXFLAGS:--Wall -g -pipe}"
	export LDFLAGS=""
elif [ $DEFS == "-DNDEBUG" ] ; then
	export CFLAGS="${CFLAGS:--Wall -O3 -pipe}"
	export CXXFLAGS="${CXXFLAGS:--Wall -O3 -pipe}"
	export LDFLAGS="-s"
else
	export CFLAGS="${CFLAGS:--Wall -pipe}"
	export CXXFLAGS="${CXXFLAGS:--Wall -pipe}"
	export LDFLAGS=""
fi

export CPPFLAGS="-I./include -I${LOCALBASE}/include -I${X11BASE}/include ${CPPFLAGS}"
export LIBS=""
export DEFS="${DEFS}"
#----------------------------------------------------------------------------------------------------------------

























